package com.education.service.vod.service;

import com.aliyuncs.exceptions.ClientException;

import java.io.InputStream;
import java.util.List;

/**
 * 上传视频接口
 * Created by Lance on 2020/07/01 10:46
 */
public interface VideoService {
    /**
     * 视频上传
     * @param inputStream
     * @param oFileName  视频原始名
     * @return
     */
    String uploadVideo(InputStream inputStream, String oFileName);

    /**
     * 删除视频
     * @param videoId
     * @throws ClientException
     */
    void removeVideo(String videoId) throws ClientException;

    /**
     * 批量删除视频
     * @param videoIdList
     */
    void removeVideoByIdList(List<String> videoIdList) throws ClientException;

    /**
     * 根据视频ID 获取阿里云播放凭证
     * @param videoSourceId 视频ID
     * @return
     */
    String getPlayAuth(String videoSourceId) throws ClientException;
}
